Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / feature / map / src / commonMain / kotlin / org / meshtastic / feature / map / LocationProviderFactory.kt

Displaying Raw • Download

feature/map/src/commonMain/kotlin/org/meshtastic/feature/map/LocationProviderFactory.kt b7cdc26a6e2b9076f73a20983a8ecf3c5287a784 (b7cdc26a) Text, 1.24 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.map

Tff7b72import T7ee787androidx.compose.runtime.Composable
Tff7b72import T7ee787org.maplibre.compose.location.LocationProvider

T8b949e/**
* Returns a platform-appropriate [LocationProvider], or `null` if the platform doesn't support location.
* - Android: uses the platform `LocationManager` via `rememberDefaultLocationProvider()`.
* - iOS: uses `CLLocationManager` via `rememberDefaultLocationProvider()`.
* - Desktop/JS: returns `null` (no location hardware).
*/
Tf0883e@Composable Tff7b72expect Tff7b72fun Td2a8ffrememberLocationProviderOrNullTb4b4b4(Tb4b4b4)Tb4b4b4: Te6edf3LocationProvider?

Served by rngit 1.5.2 - Generated in 0.09s